
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <script type="text/javascript">
            dojo.require("dijit.MenuBar");
            dojo.require("dijit.MenuBarItem");
            dojo.require("dijit.PopupMenuBarItem");
            dojo.require("dijit.Menu");
            dojo.require("dijit.MenuItem");
            dojo.require("dijit.PopupMenuItem");

            var pMenuBar;
            dojo.ready(function(){
                pMenuBar = new dijit.MenuBar({});

                var pSubMenu = new dijit.Menu({});
                pSubMenu.addChild(new dijit.MenuItem({
                    label:"File item #1"
                }));
                pSubMenu.addChild(new dijit.MenuItem({
                    label:"File item #2"
                }));
                pMenuBar.addChild(new dijit.PopupMenuBarItem({
                    label:"File",
                    popup:pSubMenu
                }));

                var pSubMenu2 = new dijit.Menu({});
                pSubMenu2.addChild(new dijit.MenuItem({
                    label:"Edit item #1"
                }));
                pSubMenu2.addChild(new dijit.MenuItem({
                    label:"Edit item #2"
                }));
                pMenuBar.addChild(new dijit.PopupMenuBarItem({
                    label:"Edit",
                    popup:pSubMenu2
                }));

                pMenuBar.placeAt("wrapper");
                pMenuBar.startup();
            });
        </script>
    </head>
    <body>
        <div id="wrapper"></div>
    </body>
</html>
